<template>
    <div>
        <p>这是grandPa</p>
        <ul>
            <li v-for="(item,index) in arr" :key="index">{{item.a}}</li>
        </ul>
        <parent :arr='arr'></parent>
    </div>
</template>
<script>
import parent from './parent.vue'
export default {
    components:{
        parent
    },
    data(){
        return {
            arr:[{a:1},{a:2}]
        }
    }
}
</script>